package cn.bonoon.entities.interacting;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.bonoon.kernel.support.entities.AbstractPersistable;

/**
 * 发布公告，就是把公告发布到指定的子系统上
 * @author jackson
 *
 */
@Entity
@Table(name = "t_announcementr")
public class AnnouncementReleaseEntity extends AbstractPersistable{

	private static final long serialVersionUID = 7918471087220827702L;

	@ManyToOne
	@JoinColumn(name = "R_ANNOUNCEMENT_ID")
	private AnnouncementEntity announcement;

	@Column(name = "C_DISABLE")
	private boolean disable;

	/** 该公告属于哪个系统 */
	@Column(name = "C_KEY")
	private String key;

	public AnnouncementEntity getAnnouncement() {
		return announcement;
	}

	public void setAnnouncement(AnnouncementEntity announcement) {
		this.announcement = announcement;
	}

	public boolean isDisable() {
		return disable;
	}

	public void setDisable(boolean disable) {
		this.disable = disable;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}
	
}
